﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MBS.UserControls.MovieUserControl;

namespace MBS
{
    public partial class MovieView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            {

            }

            ViewMovieUserControl1.RemoveMovieSuccessful += new ViewMovieUserControl.RemoveMovieHandler(RemoveMovieUserControl1_RemoveMovieSuccessful);
            ViewMovieUserControl1.RemoveMovieFailed += new ViewMovieUserControl.RemoveMovieHandler(RemoveMovieUserControl1_RemoveMovieFailed);
            ViewMovieUserControl1.UpdateMovieSuccessful += new ViewMovieUserControl.UpdateMovieHandler(UpdateMovieUserControl1_UpdateMovieSuccessful);
            ViewMovieUserControl1.UpdateMovieFailed += new ViewMovieUserControl.UpdateMovieHandler(UpdateMovieUserControl1_UpdateMovieFailed);
       
        
        }
        void RemoveMovieUserControl1_RemoveMovieSuccessful()
        {
            string x = "Movie Removed Successfully";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        void RemoveMovieUserControl1_RemoveMovieFailed()
        {
            string x =  "Movie Removed failed";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        void UpdateMovieUserControl1_UpdateMovieSuccessful()
        {
            string x =  "Movie Updated Successfully";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        void UpdateMovieUserControl1_UpdateMovieFailed()
        {
            string x = "Movie Updated failed";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }
    }
}